<?php
if(!ROOT){
	exit('Access denied');
}
#数据库删除表
$query=array();
$query[]="DROP TABLE ".DB_PREFIX."link;";
#执行命令
if(count($query)>0){
	foreach($query as $sql){
		$this->db->query($sql);
	}
}
$template_admin=array(
	'link.info',
	'link.list'
);
foreach($template_admin as $v){
	@unlink(ROOT."/core/themes/admin/".$v.".php");
}